#include "main.h"
#include <stdio.h>
#include <stdint.h>
#include "Drv_led.h"

#include "bsp_systick.h"
#include "bsp_task.h"
#include "bsp_key.h"

void HardWare_Init(void)
{
	SysTick_Init(1);
	LED_Init();
	Key_Init();
	Key_interrupt_Init();
}


int main(void)
{
	HardWare_Init();
	Scheduler_Setup();
	
    while (1)
    {
		Scheduler_Run();
    }
}

/**
 * @brief Assert failed function by user.
 * @param file The name of the call that failed.
 * @param line The source line number of the call that failed.
 */
#ifdef USE_FULL_ASSERT
void assert_failed(const uint8_t* expr, const uint8_t* file, uint32_t line)
{
    while (1)
    {
    }
}
#endif // USE_FULL_ASSERT





